home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_8003.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  52 lines

  1. -- card: 8003 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 2612
  5. -- name: CheckMenu
  6.  
  7.  
  8. -- part contents for background part 2
  9. ----- text -----
  10. CheckMenu
  11.  
  12. -- part contents for background part 13
  13. ----- text -----
  14. 12
  15.  
  16. -- part contents for background part 3
  17. ----- text -----
  18.  
  19. CheckMenu lets you add and remove check marks for items in menus you've created using the NewMenu* XFCN.  Examples:
  20.  
  21.   CheckMenu myMenu, 2, TRUE
  22.   CheckMenu myMenu, 3, (the userLevel>2)
  23.  
  24. The first example will place a check mark next to the second menu item in menu "myMenu".  The second example will place a check mark next to the third item in "myMenu" IF the userLevel is greater than 2.
  25.  
  26. The menu number you provide to to CheckMenu should be the same number that was returned by NewMenu*.
  27.  
  28. •••
  29.  
  30. All the credit, (even the descriptions above) go to the creator of this ingenious XCMD:
  31.  
  32. Nine to Five Software Company
  33. P.O. Box 915
  34. Greenwood, IN  46142
  35. (317) 887-2154
  36. & Michael Long
  37.  
  38. See also NewMenu*, EnableMenu*, DeleteMenu*,  ChangeMenu*, and ShowMenu*
  39.  
  40.  
  41. -- part contents for background part 10
  42. ----- text -----
  43. Syntax:
  44.  
  45. CheckMenu <menuNumber>,
  46. <itemNumber>,TRUE/FALSE
  47.  
  48. <menuNumber> is the MenuID that was returned by NewMenu when the menu was created.
  49.  
  50. <itemNumber> is the number of the item in the menu (starting at 1 for the first item in the menu .)
  51.  
  52. TRUE checks that item.  FALSE unchecks the item.